package cn.amossun.starter.web.data.security.test.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

@Getter
@Setter
@ToString
@EqualsAndHashCode(callSuper = false)
@TableName("t_users")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 用户id
     */
    @TableField(value = "USER_ID")
    private String userId;

    /**
     * 用户名称
     */
    @TableField(value = "USER_NAME")
    private String userName;

    /**
     * 登录名
     */
    @TableField(value = "NICKNAME")
    private String nickName;

    /**
     * 密码
     */
    @TableField(value = "USER_PASSWORD" )
    private String userPassword;

    /**
     * 密码有效期
     */
    @TableField(value = "PWD_DURATION")
    private String pwdDuration;

}
